/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package InterfaceGraphique;

import java.awt.Frame;
import java.awt.GridLayout;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;

/**
 *
 * @author antonin.martin
 */
public class BoiteMessage {

    protected String description;

    public BoiteMessage(String description) {

        JPanel panelMessage = new JPanel(new GridLayout(1, 0));
        JLabel labelMessage = new JLabel(description);

        panelMessage.add(labelMessage);

        JOptionPane.showMessageDialog(new Frame(), panelMessage, "Réponse", JOptionPane.WARNING_MESSAGE);
    }
}
